package com.info.zhiduoduo.repository.entity.taxer;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *  注册邀请码
 * </p>
 *
 * @author bob
 * @since 2019-12-08
 */
@Data
@Accessors(chain = true)
@TableName("zdd_taxer_invite_code")
public class TaxerInviteCode extends Model<TaxerInviteCode> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 邀请名称
     */
    @TableField("invite_name")
    private String inviteName;
    /**
     * 邀请码
     */
    @TableField("invite_code")
    private String inviteCode;
    /**
     * 金额
     */
    private BigDecimal amount;
    /**
     * 备注
     */
    private String remark;
    /**
     * 逻辑删除 0：否 1：已删除
     */
    @TableLogic
    private Integer deleted;
    private Date createtime;
    @TableField(update = "now()")
    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
